<?php

require PATH_CONTROLLERS . 'NewsController.php';

class NewsList extends NewsController {

    private $M = null;

    function __construct() {
        parent::_run();
        parent::setUiPath();
        $this->M = parent::loadModelClass('News');
        if (isset($_GET['A'])) {
            return false;
        }
        $this->init();
    }

    /**
     * 新闻列表页
     */
    function init() {
        $news_list = $this->M->getAnswers();
        
        parent::$SEO['title'] = '新闻列表页';
        parent::$SEO['key'] = '新闻列表页';

        parent::$css_file[] = HTTP_UI . 'news/css/list.css';

        include parent::display('list');
    }

}
